package org.josircd.config.bean;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

/**
 * org.josircd.config.bean
 *
 * @author richardju
 * @version 1.0
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class IrcdSocket {
    @XmlElement
    private String address;
    @XmlElement
    private int port;
    @XmlElement
    private boolean ssl;

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public boolean isSsl() {
        return ssl;
    }

    public void setSsl(boolean ssl) {
        this.ssl = ssl;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return address + ":" + port + " - ssl : " + isSsl();   
    }
}
